<div id="qlogin" class="cont ui-corner-all">
	<ul class="tabs clearfix">
		<li class="on login"><a class="ui-corner-tl" href="javascript:void(0);" rel="external"><?php echo $form['login_title'];?></a></li>
		<li class="reg"><a class="ui-corner-tr" href="javascript:void(0);" rel="external"><?php echo
            $form['reg_title'];?></a></li>
	</ul>
	<div id="err-msg"></div>
	<div class="tlogin">
        <form id="loginForm" action="<?php echo $form['action']['login'];?>" ajax="<?php echo $form['ajax_url'];?>" success_url="<?php echo $form['success_url'];?>" method="<?php echo $form['method'];?>">
        <?php
            echo '<input type="hidden" name="item" value="'.$form['items']['login'].'" />';
            foreach((array)$form['hidden'] as $key=>$val) {
                echo '<input type="hidden" name="'.$key.'" value="'.$val.'" />';
            }
        ?>
        <input type="hidden" name="lang" value="<?php echo $form['lang'];?>" />
		<div class="input">
            <div class="hd"><label for="s-email"><?php echo $form['login_id'];?></label></div>
			<div class="ft"><input type="text" name="email" id="s-email" class="intel-text" data-theme="f" value="" /></div>
		</div>
		<div class="input">
            <div class="hd"><label for="s-password"><?php echo $form['password'];?></label></div>
			<div class="ft"><input type="password" name="password" id="s-password" class="intel-text" data-theme="f" value="" /></div>
		</div>
		<div class="input">
			<div class="hd"><label for="">&nbsp;</label></div>
            <div class="ft ui-ubtn">&nbsp;<a href="<?php echo $form['forget']['link'];?>" class="fpass" target="_blank"><?php echo $form['forget']['title'];?></a></div>
		</div>
		</form>
	</div>
	<div class="treg hidden">
        <form id="regForm" action="<?php echo $form['action']['reg'];?>" ajax="<?php echo $form['ajax_url'];?>" success_url="<?php echo $form['success_url'];?>" method="<?php echo $form['method'];?>">
            <?php
                echo '<input type="hidden" name="item" value="'.$form['items']['reg'].'" />';
                foreach((array)$form['hidden'] as $key=>$val) {
                echo '<input type="hidden" name="'.$key.'" value="'.$val.'" />';
                }
            ?>
            <input type="hidden" name="lang" value="<?php echo $form['lang'];?>" />
			<div class="field">
                <label for="r-email"><?php echo $form['reg_email']['title'];?><em><?php echo
                        $form['reg_email']['note'];?></em></label>
				<input type="text" name="email" id="r-email" class="no-corner no-shadow" />
			</div>
			<div class="field">
                <label for="r-password"><?php echo $form['reg_pwd']['title'];?><em><?php echo
                        $form['reg_pwd']['note'];?></em></label>
				<input type="password" name="password" id="r-password" class="no-corner no-shadow" />
			</div>
			<div class="field">
                <label for="r-repassword"><?php echo $form['reg_repwd']['title'];?></label>
				<input type="password" name="repassword" id="r-repassword" class="no-corner no-shadow" />
			</div>
			<div class="field">
                <label for="r-captcha"><?php echo $form['reg_captcha']['title'];?><em><?php echo
                        $form['reg_captcha']['note'];?></em></label>
				<input type="text" name="captcha" id="r-captcha" class="no-corner no-shadow" />
			</div>
            <div class="field captcha">
            	<img id="captcha-img" width="200" height="50" alt="" src="./image.php?r=<?php echo $microtime;?>" />
            	<a href="javascript:void(0);" rel="external" id="reload-captcha-img">&nbsp;</a>
            </div>
		</form>
	</div>
</div>
<div class="lang ui-corner-all input">
    <div class="hd"><label for="s-lang"><?php echo $form['language']['title'];?></label></div>
	<div class="ft"><select name="lang-list">
    <?php 
    if (isset($form['lang_info']['lang'])) unset($form['lang_info']['lang']);
    foreach ($form['lang_info'] as $k=>$v){
        $checked = ($form['lang']==$k) ? " selected " : "";
        echo "<option value='{$k}' ".$checked.">{$v}</option>";
	}
	?>
	</select></div>
</div>
	<div class="cbtn ui-ubtn" data-inline="true">
        <a href="<?php echo $form['button']['previous']['link'];?>" rel="external" data-role="button" class="prev"><?php echo $form['button']['previous']['value'];?></a>
        <a href="javascript:void(0);" rel="external" data-role="button" class="next"><?php echo $form['button']['next']['value'];?></a>
	</div>
